
class BaseDialog2():

    def show_prompt(self, e):
        # 显示提示对话框
        self.prompt_dialog.visible = True
        self.page.update()

    def hide_prompt(self, e):
        # 隐藏提示对话框
        self.prompt_dialog.visible = False
        self.page.update()

    def close_dlg(self, e):
        # 关闭整个对话框
        self.base_dialog.visible = False
        if hasattr(self, 'prompt_dialog') and self.prompt_dialog.visible:
            self.prompt_dialog.visible = False
        self.page.update()

